package com.app.service;

import com.app.pojo.Complaint;
import com.app.util.Result;
import com.app.vo.ComplaintVo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 投诉建议 服务类
 * </p>
 *
 * @author yoominic
 * @since 2024-07-29
 */
public interface IComplaintService extends IService<Complaint> {


    ComplaintVo getMyComplaintList(Integer page, Integer limit,Integer userid);

    void addComplaint(Complaint complaint, Integer userid);

    /**
     * admin列表
     * @return
     */
    Result<Object> complaintList(Integer page, Integer limit, String keyword);

    /**
     * admin删除投诉意见
     * @param id
     * @return
     */
    Result<Object> deleteById(Integer id);
}
